package com.sca.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author liuxianfei
 * @since 2020/11/3 11:32
 */
@Setter
@Getter
@TableName("sca_o_stock")
public class Stock extends AbstractEntity<Stock> {

    private static final long serialVersionUID = 4520031880264893687L;

    /**
     * 商品id
     */
    private Integer goodId;

    /**
     * 剩余库存数量
     */
    private Integer num;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    /**
     * 0：有效，1：无效
     */
    @TableField("is_delete")
    private Boolean del;

}
